{
  "directed": true,
  "name": "Arch_SCaaS_Bridge",
  "strict": false,
  "attrs": {
    "rankdir": "LR"
  },
  "nodes": [
    {
      "id": "\\n",
      "attrs": {}
    }
  ],
  "edges": [
    {
      "source": "XHelper",
      "target": "StHelper",
      "attrs": {
        "dir": "both",
        "label": "\"bridge msgs\\n(XpBC <-> StCnBC)\""
      }
    },
    {
      "source": "YHelper",
      "target": "StHelper",
      "attrs": {
        "dir": "both",
        "label": "\"bridge msgs\\n(YpBC <-> StCnBC)\""
      }
    }
  ],
  "subgraphs": [
    {
      "name": "cluster_x",
      "attrs": {
        "label": "\"Partner X Environment (XpBC)\"",
        "style": "rounded"
      },
      "nodes": [
        {
          "id": "XRepo",
          "attrs": {
            "shape": "folder",
            "label": "\"Payment Service Repo\\n(on XpBC)\""
          }
        },
        {
          "id": "XSC",
          "attrs": {
            "shape": "component",
            "label": "\"X Trading Activity\\nSmart Contract\""
          }
        },
        {
          "id": "XAPI",
          "attrs": {
            "shape": "box",
            "label": "\"X API / Adapter\\n(Off-chain app)\""
          }
        },
        {
          "id": "XHelper",
          "attrs": {
            "shape": "component",
            "label": "\"X Helper Bridge\\nSmart Contract\""
          }
        },
        {
          "id": "\\n",
          "attrs": {}
        }
      ],
      "edges": [
        {
          "source": "XAPI",
          "target": "XSC",
          "attrs": {}
        },
        {
          "source": "XRepo",
          "target": "XSC",
          "attrs": {
            "style": "dashed",
            "label": "\"select StCnPay\\nfor GenPaySetNet\""
          }
        },
        {
          "source": "XSC",
          "target": "XHelper",
          "attrs": {
            "label": "\"invoke cross-chain\\npayment request\""
          }
        }
      ],
      "subgraphs": []
    },
    {
      "name": "cluster_y",
      "attrs": {
        "label": "\"Partner Y Environment (YpBC)\"",
        "style": "rounded"
      },
      "nodes": [
        {
          "id": "YRepo",
          "attrs": {
            "shape": "folder",
            "label": "\"Payment Service Repo\\n(on YpBC)\""
          }
        },
        {
          "id": "YSC",
          "attrs": {
            "shape": "component",
            "label": "\"Y Trading Activity\\nSmart Contract\""
          }
        },
        {
          "id": "YAPI",
          "attrs": {
            "shape": "box",
            "label": "\"Y API / Adapter\\n(Off-chain app)\""
          }
        },
        {
          "id": "YHelper",
          "attrs": {
            "shape": "component",
            "label": "\"Y Helper Bridge\\nSmart Contract\""
          }
        },
        {
          "id": "\\n",
          "attrs": {}
        }
      ],
      "edges": [
        {
          "source": "YAPI",
          "target": "YSC",
          "attrs": {}
        },
        {
          "source": "YRepo",
          "target": "YSC",
          "attrs": {
            "style": "dashed",
            "label": "\"select StCnPay\\nfor GenPaySetNet\""
          }
        },
        {
          "source": "YSC",
          "target": "YHelper",
          "attrs": {
            "label": "\"invoke cross-chain\\npayment request\""
          }
        }
      ],
      "subgraphs": []
    },
    {
      "name": "cluster_pay",
      "attrs": {
        "label": "\"Payment Service Chain (StCnBC)\"",
        "style": "rounded"
      },
      "nodes": [
        {
          "id": "StCnPay",
          "attrs": {
            "shape": "component",
            "label": "\"StCnPay\\n(Netting + Settlement)\\nSmart Contract\""
          }
        },
        {
          "id": "StHelper",
          "attrs": {
            "shape": "component",
            "label": "\"Payment Helper Bridge\\nSmart Contract\""
          }
        },
        {
          "id": "\\n",
          "attrs": {}
        }
      ],
      "edges": [
        {
          "source": "StHelper",
          "target": "StCnPay",
          "attrs": {
            "label": "\"call payment\\nmethods\""
          }
        }
      ],
      "subgraphs": []
    }
  ]
}